<link href="__PUBLIC__/home/css/style.css" rel="stylesheet">
<link href="__PUBLIC__/home/css/style-responsive.css" rel="stylesheet">
<link href="__PUBLIC__/home/css/bootstrap.min.css" rel="stylesheet"> 
 <include file="application/home/view/public/header.html"/>
      <!-- /.aside -->
      <section id="content">
        <div class="wrapper">
            <div class="mail-box">
                <aside class="mail-nav mail-nav-bg-color">
                    <header class="header"> <h4>邮箱</h4> </header>
                    <div class="mail-nav-body">
                        <div class="text-center">
                            <a class="btn btn-compose" href="{:U('Mail/send')}">
                                撰写邮件
                            </a>
                        </div>
                        <ul class="nav nav-pills nav-stacked mail-navigation">
                            <li class="active">
                            	<a href="{:U('Mail/index')}"> 
                            		<i class="fa fa-inbox"></i>
                            		收信箱  
                            		<span class="label label-danger pull-right inbox-notification">{$wcount}</span>
                            	</a>
                            </li>
                            <li><a href="{:U('Mail/inbox')}"> <i class="fa fa-envelope-o"></i>发信箱</a></li>
                            <li><a href="{:U('Mail/huanyuan')}"> <i class="fa fa-trash-o"></i>回收站</a></li>
                        </ul>

                        
                    </div>
                </aside>
                <section class="mail-box-info">
                    <header class="header">
                        <div class="compose-btn pull-right">
                            <a class="btn btn-sm btn-primary" href="mail_compose.html"><i class="fa fa-reply"></i> Reply</a>
                            <button title="" data-placement="top" data-toggle="tooltip" type="button" data-original-title="Print" class="btn btn-default  btn-sm tooltips"><i class="fa fa-print"></i> </button>
                            <button title="" data-placement="top" data-toggle="tooltip" data-original-title="Trash" class="btn btn-default btn-sm tooltips"><i class="fa fa-trash-o"></i></button>
                        </div>
                        <div class="btn-toolbar">
                            <h4 class="pull-left">
                                邮件详情
                            </h4>
                        </div>
                    </header>
                        
                    <section class="mail-list">
                        <div class="mail-sender">
                            <div class="row">
                                <div class="col-md-8">
                                    <img src="{$v['pic']}" alt="">
                                    <strong>{$title}</strong>  
                                </div>
                                <div class="col-md-4">
                                    <p class="date"> {$add_time|date="Y-m-d H:i:s",###}</p>
                                </div>
                            </div>
                        </div>
                        <div class="view-mail">
                            <p>
                                {$content}
                            </p>
                        </div>
                        <div class="attachment-mail">
                          
                           
                        </div>
                        <div class="compose-btn pull-left">
                            <a href="mail_compose.html" class="btn btn-sm btn-primary" ><i class="fa fa-reply"></i> 回复</a>
                            <input type="hidden" id="id" value="{$id}">
                            <button class="btn btn-sm btn-default tooltips" data-original-title="删除" data-toggle="tooltip" data-placement="top" title="" onclick="del()"><i class="fa fa-trash-o"></i></button>
                        </div>
                    </section>


                </section>
            </div>

        </div>
    </section>
  </section>
</section>
<script src="__PUBLIC__/home/js/app.v2.js"></script> <!-- Bootstrap --> <!-- App --> <script src="__PUBLIC__/home/js/charts/easypiechart/jquery.easy-pie-chart.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/sparkline/jquery.sparkline.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.tooltip.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.resize.js" cache="false"></script> <script src="js/charts/flot/jquery.flot.grow.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/demo.js" cache="false"></script> <script src="__PUBLIC__/home/js/calendar/bootstrap_calendar.js" cache="false"></script> <script src="__PUBLIC__/home/js/calendar/demo.js" cache="false"></script> <script src="__PUBLIC__/home/js/sortable/jquery.sortable.js" cache="false"></script>
<script src="__PUBLIC__/js/layer/layer.js" type="text/javascript"></script>

</body>
</html>
<script type="text/javascript">
    function del(){
        var id = $('#id').val();
        var url = "{:U('Mail/delete')}";
        $.post(url,{'id':id},function(data){
            layer.msg(data.info);
            if(data.status == 1){   
                setTimeout(function(){
                     window.location.href='{:U('Mail/index')}'
                }, 2000);
            }
        });
    }

</script>









        